package com.springboot.cloud.demos.producer.service;

import com.springboot.cloud.demos.entity.param.AnswerQueryParam;
import com.springboot.cloud.demos.entity.po.Answer;

import java.util.List;

public interface IAnswerService {
    /**
     * 获取
     *
     * @param id
     * @return
     */
    Answer get(String id);

    /**
     * 新增
     *
     * @param answer
     * @return
     */
    boolean add(Answer answer);

    /**
     * 查询
     *
     * @return
     */
    List<Answer> query(AnswerQueryParam param);

    /**
     * 更新信息
     *
     * @param answer
     */
    boolean update(Answer answer);

    /**
     * 根据id删除
     *
     * @param id
     */
    boolean delete(String id);
}
